<template>
  <div id="app">
    <el-container>
      <el-header>
        <img alt="Vue logo" src="./assets/xuexiao.png">
        <h3>吕梁学院 城市天气预测系统</h3>
      </el-header>
      <el-container>
        <el-aside width="200px">

          <el-row class="tac">
  <el-col :span="24">
    <h5>菜单选项</h5>
    <el-menu
      default-active="2"
      class="el-menu-vertical-demo"
      @open="handleOpen"
      @close="handleClose">
      <el-submenu index="1">
        <template slot="title">
          <i class="el-icon-location"></i>
          <span>热门城市天气数据</span>
        </template>
        <el-menu-item-group>
          <el-menu-item index="1-1">
            <router-link to="/taiyuan">太原</router-link>
          </el-menu-item>
          <el-menu-item index="1-2">
            <router-link to="/beijing">北京</router-link>
          </el-menu-item>
          <el-menu-item index="1-3">
            <router-link to="/shanghai">上海</router-link>
          </el-menu-item>
          <el-menu-item index="1-4">
            <router-link to="/chengdu">成都</router-link>
          </el-menu-item>
          <el-menu-item index="1-5">
            <router-link to="/chongqing">重庆</router-link>
          </el-menu-item>
          <el-menu-item index="1-6">
            <router-link to="/tianjin">天津</router-link>
          </el-menu-item>
          <el-menu-item index="1-7">
            <router-link to="/xian">西安</router-link>
          </el-menu-item>
        </el-menu-item-group>
      </el-submenu>

      <el-submenu index="2">
        <template slot="title">
          <i class="el-icon-location"></i>
          <span>热门城市天气图表</span>
        </template>
        <el-menu-item-group>
          <el-menu-item index="2-1">
            <router-link to="/ty">太原天气</router-link>
          </el-menu-item>
          <el-menu-item index="2-2">
            <router-link to="/bj">北京天气</router-link>
          </el-menu-item>
          <el-menu-item index="2-3">
            <router-link to="/sh">上海天气</router-link>
          </el-menu-item>
          <el-menu-item index="2-4">
            <router-link to="/cd">成都天气</router-link>
          </el-menu-item>
          <el-menu-item index="2-5">
            <router-link to="/cq">重庆天气</router-link>
          </el-menu-item>
          <el-menu-item index="2-6">
            <router-link to="/tj">天津天气</router-link>
          </el-menu-item>
          <el-menu-item index="2-7">
            <router-link to="/xa">西安天气</router-link>
          </el-menu-item>
        </el-menu-item-group>
      </el-submenu>

      <el-submenu index="3">
        <template slot="title">
          <i class="el-icon-location"></i>
          <span>预测城市天气</span>
        </template>
        <el-menu-item-group>
          <el-menu-item index="3-1">
            <router-link to="/form">预测</router-link>
          </el-menu-item>
        </el-menu-item-group>
      </el-submenu>
    </el-menu>
  </el-col>
</el-row>

        </el-aside>
        <el-main>
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<style>
body{
  padding: 0;margin: 0;
}
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

  .el-header {
    background-color: #761c19;
    color: #333333;
    text-align: center;
    height: 20vh !important;
    display: flex;
  }
  h3{
    margin-top: 40px;
    font-size: 40px;
    color: #080808;
  }
  img{
    width: 300px;
    height: 90px;
    margin-top: 20px;
    margin-right: 50px;
  }

  .el-aside {
    background-color: #D3DCE6;
    color: #333;
    text-align: center;
    height: 80vh;
    width: 20vw !important;
  }

  .el-main {
    background-color: #E9EEF3;
    color: #333;
    text-align: center;
    height: 80vh;
  }

</style>
<script setup lang="ts">
</script>